package com.project.mapper;

import com.github.pagehelper.PageInfo;
import com.project.bean.ProductBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface IProductMapper {
    public void add(ProductBean product);
    public void del(int id);
    public void update(@Param("id") int id,@Param("price") int price);
    public ProductBean findById(int id);
    public List<ProductBean> findByItem(@Param("name") String name,
                                       @Param("startDate") LocalDate startDate,
                                       @Param("endDate") LocalDate endDate);
}
